print ("hello world")
s="hello"
print (#s)
function fact (n)
	if n == 0 then
		return 1
	else 
		return n*fact(n-1)
	end
end
print ("enter a number:")
a=2
print (fact(a))

a={}
k="x"
a[k]=10
a[20]="great"
k=20
print (a[k])
a["x"]=a["x"]+1
print (a["x"])
print (a.x)
b={}
for i=1,10 do
end
for i=1,#a do
	print (a[i])
end
days={"Sunday","Monday","Tuesday","Wednesday",
	"Thureday","Friday","Saturday"}

for i=1,#days do 
	print (days[i])
end

local j=1
while days[j] do
	print (days[j])
	j=j+1
end
print ("")

for k,v in ipairs(days) do
	print (k, v)
end

print "TEST"

function foo()
	return "a","b" 
end
print ("c",foo())
print (foo(),"c")
print ("foo" .. "bar")

a={p=print}
a.p("Hello world")
